<?php
/**
* $Id: muser.php 2942 2009-11-30 10:48:18Z huong.pham $
*/
class MUser extends TV_Model
{
    protected $table = "users";
    protected $selected_columns = "*";

    function MUser()
    {
        parent::TV_Model();
        //Sample connect another db: parent::QS_Model("oldhouseweb");        
    }       

    public function IdentifyUser($username,$status = "active")
    {
        $sql = "SELECT {$this->selected_columns}
        FROM {$this->table}
        WHERE username = ?
        AND status = ?
        ";
        return $this->query_row($sql, array($username, $status));
    }

}